package org.cy.evolution.framework.mvp;

public abstract class Presenter<V extends IView> {

    private V uiView;

    public void onAttach(V view) {
        this.uiView = view;
    }

    public void onDetach() {
        this.uiView = null;
    }

    public boolean isAttach() {
        return null != this.uiView;
    }

    public V getView() {
        return this.uiView;
    }
}
